"""eCommerce URL Configuration

The `urlpatterns` list routes URLs to views. For more information please see:
    https://docs.djangoproject.com/en/1.11/topics/http/urls/
Examples:
Function views
    1. Add an import:  from my_app import views
    2. Add a URL to urlpatterns:  url(r'^$', views.home, name='home')
Class-based views
    1. Add an import:  from other_app.views import Home
    2. Add a URL to urlpatterns:  url(r'^$', Home.as_view(), name='home')
Including another URLconf
    1. Import the include() function: from django.conf.urls import url, include
    2. Add a URL to urlpatterns:  url(r'^blog/', include('blog.urls'))


    数据已经爬取好，尽量不要去爬取，

    全部的招聘网站都加密

    基本是非常难爬取了

    选择DJ标识的项目进行启动程序

    http://127.0.0.1:9000/login/

    超级管理员账号密码 admin  admin123

    注意：
    1个cookie估计只能抓取4页
    所以这个模板一天只能爬取一次，
    不过我已经给你爬取足够多的岗位了，
    每次爬取都需要更新cookies
    嫌弃麻烦就直接展示就好了
    获取cookies：
        谷歌浏览器打开：https://www.zhipin.com/web/geek/job?query=&city=100010000&page=1


"""
from django.conf.urls import url
from django.contrib import admin

from api import Collection, run_main
from api.data_get import total, echarts_4, echarts_3, echarts_1, echarts_2, recommend, ciyun
from page import data_page, href_index

# from api.echart_data import pie,
urlpatterns = [
    url(r'login/', admin.site.urls),

    url(r'index', data_page.indexs),  # 数据大屏路径

    url('page/search', href_index.Index.as_view()),

    url('run/main/$', run_main.RequestsMain.as_view()),

    url('api/collection$', Collection.Collection.as_view()),

    url('api/total$', total.Total.as_view()),  # 统计

    url(r'api/echarts4', echarts_4.Echarts4.as_view()),

    url(r'api/echarts3', echarts_3.Echarts3.as_view()),

    url(r'api/echarts1', echarts_1.Echarts1.as_view()),

    url(r'api/echarts2', echarts_2.Echarts2.as_view()),

    url(r'api/recommend', recommend.Recommend.as_view()),

    url(r'api/ciyun', ciyun.CiYunData.as_view()),

]
